/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.tels;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 短信发送Entity
 * @author 金小敏
 * @version 2017-03-15
 */
public class TMsgSend extends DataEntity<TMsgSend> {
	
	private static final long serialVersionUID = 1L;
	protected String msgname;		// 信息主题
	protected String content;		// 信息内容
	protected String template;		// 信息模板
	protected String recipient;		// 接收人
	
	public TMsgSend() {
		super();
	}

	public TMsgSend(String id){
		super(id);
	}

	@Length(min=0, max=255, message="信息主题长度必须介于 0 和 255 之间")
	public String getMsgname() {
		return msgname;
	}

	public void setMsgname(String msgname) {
		this.msgname = msgname;
	}
	
	@Length(min=0, max=255, message="信息内容长度必须介于 0 和 255 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=255, message="信息模板长度必须介于 0 和 255 之间")
	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}
	
	@Length(min=0, max=255, message="接收人长度必须介于 0 和 255 之间")
	public String getRecipient() {
		return recipient;
	}

	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}
	
}